﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Coomtools.commclass;
using Sunny.UI;

namespace CYLScheck.UIcomm
{
    public partial class DesigerForm : UIForm
    {
        public DesigerForm()
        {
            InitializeComponent();
        }
       /// <summary>
       /// 屏蔽系统自动处理keydown事件
       /// </summary>
       /// <param name="keyData"></param>
       /// <returns></returns>
        protected override bool ProcessDialogKey(Keys keyData)
        {
            if (keyData == Keys.Up || keyData == Keys.Down || keyData == Keys.Left || keyData == Keys.Right)
                return false;
            return base.ProcessDialogKey(keyData);
        }
        private void DesigerForm_Load(object sender, EventArgs e)
        {
            this.Style = Gobleset.Gobel_userstyle;

            //foreach (var item in this.Controls)
            //{
            //    new MoveControl(item as Control);

            //}

            new MoveControl(textBox1);

            new MoveControl(textBox2);
            new MoveControl(uiButton1);
            uiScrollBar1.Value = panel1.Height;
        }

        private void uiScrollingText1_Click(object sender, EventArgs e)
        {

        }
    }
}
